package com.pvdnc.riru.appinjector;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtils {
    public static final Gson GSON=new GsonBuilder().disableHtmlEscaping().create();

    public static <T> String toJson(T obj){
        return GSON.toJson(obj);
    }

    public static <T> T fromJson(String json,Class<T> classOfT){
        return GSON.fromJson(json,classOfT);
    }
}
